def closure():
	arr = []
	def func(i):
		print(i)
	for i in range(10):
		arr.append(func(i))
	return arr

closure()
